package top.peng.project.utils;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.http.HttpServletRequest;

@Slf4j
public class Utils {

    public static void logInfoPrintRequestInfo(HttpServletRequest request) {
        log.info("=================================================================================================");
        log.info("getRequestURL {}", request.getRequestURL());
        log.info("getMethod {}", request.getMethod());
        log.info("getRequestURI {}", request.getRequestURI());
        log.info("getPathInfo {}", request.getPathInfo());
        log.info("getServletPath {}", request.getServletPath());
        log.info("getContextPath {}", request.getContextPath());
        log.info("getHttpServletMapping {}", request.getHttpServletMapping());
        log.info("=================================================================================================");
    }
}
